<%@ page import="java.util.*" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%--
  Created by IntelliJ IDEA.
  User: zhangyiyi
  Date: 2025/3/3
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:set var="hel" value="Hello Java;Hello Java Web;Hello C"/>
原始字符串：${hel}<br>
判断是否包含Java：${fn:contains(hel, "Java")}<br>
判断是否以Hello开头：${fn:startsWith(hel, "Hello")}<br>
判断是否以Hello结尾：${fn:endsWith(hel, "Hello")}<br>
全部转为大写：${fn:toUpperCase(hel)}<br>
全部转为小写：${fn:toLowerCase(hel)}<br>
截取前5个字符：${fn:substring(hel,0 ,5)}<br>
以;拆分字符串并获取第一个字符串：${fn:split(hel, ";")[0]}<br>
用-替换空格：${fn:replace(hel," " ,"-" )}<br>
</body>
</html>
